import unittest
from htmltestreport import HTMLTestReport
from scripts.test01_add import TestAddAPI

# 组装测试套件suite
# suite = unittest.TestSuite()
# suite.addTest(unittest.makeSuite(TestAddAPI))
suite = unittest.defaultTestLoader.loadTestsFromTestCase(TestAddAPI)

# 创建运行器runner
runner = HTMLTestReport("./report/aaa.html", title="接口自动化测试报告")

# 运行测试套件suite
runner.run(suite)
